home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Know Your Baseball - The Greatest Player Resource
/
Know Your Baseball - Greatest Player.iso
/
Baseball
/
Director
/
SHARED.CST
/
00006_Script_Find Commands from list
< prev
next >
Wrap
Text File
|
1998-09-21
|
2KB
|
87 lines
----- scripts for menu control --------
global gClicked, gControls,gAVI,gClipOut,gButtonStatus2,gMr1,gMr2
on Menu
sound close 2
set the timeoutscript = EMPTY
-- tests to see which sprite has been clicked on and what to do
repeat with x = 8 to 48
if rollover(x) then
set gClicked = x
if X < gMr2 and X > gMr1 then set gButtonStatus2 = x
mDo(gControls) gClicked
set what = the result
end if
if what > EMPTY then exit repeat
end repeat
if voidp(what) or what = EMPTY then
AVIcleanUP what
exit
end if
set t = (the number of chars in what)
repeat with a = 1 to 3
put char a+(t-3) of what into char a of test
end repeat
if char 1 of what = 1 then
cMarker what
exit
end if
if test = "dat" then
Assistant2 what
exit
end if
if test = "dir" then
set oldDelimiter to the itemDelimiter
set the itemDelimiter = "."
set x to item 1 of what
set the itemDelimiter to oldDelimiter
cMovie x -- drop the ",dir" extension to allow ".dxr" files
exit
end if
if what > "" then
cCommand what, x
exit
end if
end
--------------------------------------------------------------------
on cMarker what
AVIcleanup what
go what
end
on cMovie what
global gRegAll, gRegSkill
AVIcleanup what
CleanRoutine
set oldDelimiter to the itemDelimiter
set the itemDelimiter = "."
set xfile to item 1 of what
set the itemDelimiter to oldDelimiter
go movie xfile -- goes to red flag movies
end
on cCommand what
AVIcleanup what
do What
end